package com.un.ebs.production.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.un.ebs.core.metadata.DbField;
import com.un.ebs.product.enums.ProductPurchaseTypeEnum;
import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * (ProductionOrderDeliverPlanExt)表实体类
 *
 * @author liubo
 * @since 2020-07-18 09:48:43
 */
@Data
@Component
@TableName("v_production_order_deliver_plan_ext")
@SuppressWarnings("serial")
public class ProductionOrderDeliverPlanExt extends Model<ProductionOrderDeliverPlanExt> {


    @DbField(name = "sku_id", length = 40, precision = 0)
    private String skuId;

    @DbField(name = "sku_code", length = 100, precision = 0)
    private String skuCode;

    @DbField(name = "name_as", length = 100, precision = 0)
    private String nameAs;

    @DbField(name = "main_sku_code", length = 100, precision = 0)
    private String mainSkuCode;

    @DbField(name = "main_sku_name_as", length = 2100, precision = 0)
    private String mainSkuNameAs;

    @DbField(name = "purchase_type", length = -1, precision = 0)
    private ProductPurchaseTypeEnum purchaseType;

    @DbField(name = "main_sku_production_plan_qty", length = 38, precision = 4)
    private Double mainSkuProductionPlanQty;

    @DbField(name = "bom_user_qty", length = 38, precision = 4)
    private Double bomUserQty;

    @DbField(name = "production_requirement_qty", length = 38, precision = 6)
    private Double productionRequirementQty;

    @DbField(name = "inventory_current_qty", length = 18, precision = 6)
    private Double inventoryCurrentQty;

    @DbField(name = "inventory_lock_by_in_qty", length = 38, precision = 4)
    private Double inventoryLockByInQty;

    @DbField(name = "inventory_lock_by_out_qty", length = 18, precision = 6)
    private Double inventoryLockByOutQty;

    @DbField(name = "inventory_can_user_qty", length = 20, precision = 6)
    private Double inventoryCanUserQty;

    @DbField(name = "purchare_requirement_qty", length = 38, precision = 4)
    private Double purchareRequirementQty;

    @DbField(name = "supply_count", length = -1, precision = 0)
    private Integer supplyCount;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;


}